/*  1:   */ package org.jetbrains.debugger;
/*  2:   */ 
/*  3:   */

import com.intellij.xdebugger.frame.XCompositeNode;
import com.intellij.xdebugger.frame.XValueGroup;
import org.jetbrains.annotations.NotNull;

import java.util.List;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */ 
/*  8:   */ public class VariablesGroup
/*  9:   */   extends XValueGroup
/* 10:   */ {
/* 11:10 */   public static final ValueGroupFactory<List<Variable>> GROUP_FACTORY = new ValueGroupFactory()
/* 12:   */   {
/* 13:   */     public XValueGroup create(@NotNull List<Variable> paramAnonymousList, int paramAnonymousInt1, int paramAnonymousInt2, @NotNull VariableContext paramAnonymousVariableContext)
/* 14:   */     {
/* 15:13 */       if (paramAnonymousList == null) {
/* 16:13 */         throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/debugger/VariablesGroup$1", "create" }));
/* 17:   */       }
/* 18:13 */       if (paramAnonymousVariableContext == null) {
/* 19:13 */         throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "3", "org/jetbrains/debugger/VariablesGroup$1", "create" }));
/* 20:   */       }
/* 21:13 */       return VariablesGroup.createArrayRangeGroup(paramAnonymousInt1, paramAnonymousInt2, paramAnonymousList, paramAnonymousVariableContext);
/* 22:   */     }
/* 23:   */   };
/* 24:   */   private final int a;
/* 25:   */   private final int b;
/* 26:   */   private final List<Variable> c;
/* 27:   */   private final VariableContext d;
/* 28:   */   
/* 29:   */   public VariablesGroup(@NotNull String paramString, @NotNull List<Variable> paramList, VariableContext paramVariableContext)
/* 30:   */   {
/* 31:23 */     this(0, paramList.size(), paramList, paramVariableContext, paramString);
/* 32:   */   }
/* 33:   */   
/* 34:   */   private VariablesGroup(int paramInt1, int paramInt2, @NotNull List<Variable> paramList, @NotNull VariableContext paramVariableContext, @NotNull String paramString)
/* 35:   */   {
/* 36:27 */     super(paramString);
/* 37:   */     
/* 38:29 */     this.a = paramInt1;
/* 39:30 */     this.b = paramInt2;
/* 40:31 */     this.c = paramList;
/* 41:32 */     this.d = paramVariableContext;
/* 42:   */   }
/* 43:   */   
/* 44:   */   public static VariablesGroup createArrayRangeGroup(int paramInt1, int paramInt2, List<Variable> paramList, VariableContext paramVariableContext)
/* 45:   */   {
/* 46:36 */     String str = "[" + ((Variable)paramList.get(paramInt1)).getName() + " … " + ((Variable)paramList.get(paramInt2 - 1)).getName() + "]";
/* 47:37 */     return new VariablesGroup(paramInt1, paramInt2, paramList, paramVariableContext, str);
/* 48:   */   }
/* 49:   */   
/* 50:   */   public void computeChildren(@NotNull XCompositeNode paramXCompositeNode)
/* 51:   */   {
/* 52:42 */     if (paramXCompositeNode == null) {
/* 53:42 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/debugger/VariablesGroup", "computeChildren" }));
/* 54:   */     }
/* 55:42 */     paramXCompositeNode.setAlreadySorted(true);
/* 56:43 */     paramXCompositeNode.addChildren(Variables.createVariablesList(this.c, this.a, this.b, this.d), true);
/* 57:   */   }
/* 58:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.jetbrains.debugger.VariablesGroup

 * JD-Core Version:    0.7.0.1

 */